import React, { Component } from 'react'
import './App.css'
import Search from './components/Search'
import Showbox from './components/Showbox'
export default class App extends Component {
  state={requestList:[],isLoding:false,err:''}
  getUsers=(list)=>{
    console.log(list);
    this.setState({requestList:list})
  }
  changeAppState=(obj)=>{
    this.setState(obj)
  }
  render() {
    return (
      <div className='container'>
        <Search getUsers={this.getUsers} changeAppState={this.changeAppState}></Search> 
        <Showbox params={this.state}></Showbox>
      </div>
    )
  }
}
